from Utils.router import router
from Utils.zj import timeklpk


@router.get('/zj/shopkl10')  # 客流排前十店铺
async def shopkl10():
    shopkl = timeklpk.get_Top10_kl()[1]
    shopname = timeklpk.get_Top10_kl()[0]
    shopkls = []
    # shopname = []
    for i in shopkl:
        shopkls.append(i[0])
    # for n in shopkl10name:
    #     nn = n[0]
    #     shopname.append(nn)
    return {'shopname': shopname, 'shopkl': shopkls}
